package com.thread.thread01;

import java.util.concurrent.Callable;

/**
 * @version: java version 23
 * @Author: 韩学新
 * @description:
 * @date: 2025-03-24 下午8:11
 */
public class ThreadCallable implements Callable<Integer> {
    @Override
    public Integer call() {
        try {
            Thread.sleep(5000);
            System.out.println(Thread.currentThread().getName()+ "返回结果:");
            return 1;
        } catch (InterruptedException e) {
            throw new RuntimeException(e);
        }

    }
}
